Skip to main content

DescribeStrategyTarget

Description

to obtain the asset grouping for which the specified baseline check policy is applied.

Request Method

POST

Request Path

/apsara/route/aegis/DescribeStrategyTarget

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
TypeBODYstringNoNo sample value for this parameter.system specified parameters. Value: hc_strategy
TargetBODYstringNoNo sample value for this parameter.asset group ID to which the baseline check policy is applied.
regionIdBODYstringYesNo sample value for this parameter.region id
ConfigBODYstringNoNo sample value for this parameter.policy configuration information. Enter the baseline check policy ID in JSON format, for example, {"strategyId":15161}
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
Targetstringno demo valueasset group ID.
RequestIdstringno demo valuerequest ID.
TargetTypestringno demo valuethe fixed return value is groupId, indicating that the value of the Target parameter is the asset group ID.
StrategyTargetsarrayno demo valueasset grouping information using this policy. for specific sub-items, see the following parameter description.
Countintegerno demo valuetotal number of records returned.
Flagstringno demo valueEffective ID: add: indicates a white list, that is, the asset group applies the policy. del: indicates a blacklist, that is, the asset group does not apply this policy. description generally, the system default policy is blacklisted, and user-defined policies are whitelist.

Example

Successful Response example

{
"Target":"no demo value",
"RequestId":"no demo value",
"TargetType":"no demo value",
"StrategyTargets":"no demo value",
"Count":"no demo value",
"Flag":"no demo value"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}